package mb;

import javax.swing.JApplet;  // +
import javax.swing.JFrame;

public class App extends JApplet {   // &

  private JFrame appFrame;

  public App() {
    super();
    appFrame = new JFrame();
    appFrame.setTitle("Empty window");  // +
    appFrame.setSize(400, 300);  // +
    // appFrame.setVisible(true);  // -
  }

  // {+}
  // Start.java // -

  public void init() {
    appFrame.setLocation(80, 80);
  }

  public void start() {
    appFrame.setVisible(true);
  }

  public void stop() {
    appFrame.setVisible(false);
  }

  public void destroy() {
    appFrame.dispose();
  }
  
  public static void main(String[] args) {
    App app = new App();  
    app.init();  
    app.start();  

  }
    
}
